package com.hrm.model.serviceimple;

import java.util.List;

import com.hrm.model.dao.EmployeeDAO;
import com.hrm.model.dto.insa.EmployeeDTO;
import com.hrm.model.dto.insa.FamilyDTO;
import com.hrm.model.service.EmployeeService;

public class EmployeeServiceImple implements EmployeeService{
	
	private EmployeeDAO employeeDAO;

	public void setEmployeeDAO(EmployeeDAO employeeDAO) {
		this.employeeDAO = employeeDAO;
	}

//=== employee
	@Override
	public boolean insertEmployee(EmployeeDTO dto) {
		return employeeDAO.insertEmployee(dto);
	}

	@Override
	public List getAllEmployee(EmployeeDTO dto) {
		return employeeDAO.getAllEmployee(dto);
	}

	@Override
	public EmployeeDTO getEmployee(EmployeeDTO dto) {
		return employeeDAO.getEmployee(dto);
	}

	@Override
	public void updateEmployee(EmployeeDTO command) {
		employeeDAO.updateEmployee(command);
	}

}
